﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace SevenInvaders
{
    class KaikePlayer:Player
    {
        public KaikePlayer(Texture2D texture, Vector2 position, int player, GameWindow qg,
            ContentManager Content) :
            base(texture, position, player, qg, Content)
        {

        }

        public void Update(GameTime gameTime, KeyboardState ks)
        {
            if (ks.IsKeyDown(Keys.W))
            {
                PositionX += Velocity.X;
                //Position = new Vector2(Position.X + Velocity.X, Position.Y);
            }
            else if (ks.IsKeyDown(Keys.S))
            {
                PositionX -= Velocity.X;
            }
            else if (ks.IsKeyDown(Keys.D))
            {
                PositionY += Velocity.Y;
            }
            else if (ks.IsKeyDown(Keys.A))
            {
                PositionY -= Velocity.Y;
            }
        }
    }
}
